home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Chords
/
get-all-chord-intervals
next >
Wrap
Text File
|
1998-10-22
|
1KB
|
24 lines
get-all-chord-intervals
chords &key (type :integer) (round t)
Gives you all the intervals from chord after first removing
duplicates and sorting from low to high.
with type integer results in a list of intervals in integers
and with (round t) rounds intervals larger than octave.
(with (round nil) does no rounding)
with type :print prints the interval-names to a list
and (round t) must be used.
It works only with chromatic material.
use convert-to-chromatic and then change-to-new-tonality
to solve any problems.
(get-all-chord-intervals '(ahor cgh spwna))
-> ((3 7 7 10 2 5) (1 4 5) (2 3 4 5 7 9 1 3 6 10))
(get-all-chord-intervals '(ahor cgh spwna) :round nil)
->((3 7 7 10 14 17) (1 4 5) (2 3 4 5 7 9 13 15 18 22))
(get-all-chord-intervals '(ahor cgh spwna) :type :print)
->((1 :min-third 2 perf-fifths 1 :min-seventh 1 :maj-second 1 :perf-fourth) (1 :min-second 1 :maj-third 1 :perf-fourth) (1 :maj-second 2 min-thirds 1 :maj-third 1 :perf-fourth 1 :perf-fifth 1 :maj-sixth 1 :min-second 1 :aug-fourth 1 :min-seventh))